package com.teamall.web.tssy.db.dao.mapper;

import com.teamall.web.tssy.db.arg.TsSyDeptArg;
import com.teamall.web.tssy.db.po.TsSyDeptPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ITsSyDeptMapper {
    
    List<Integer> countByArg(TsSyDeptArg arg);

    List<TsSyDeptPO> selectByArg(TsSyDeptArg arg);

    TsSyDeptPO selectByPrimaryKey(String id);

    List<TsSyDeptPO> selectByArgAndPage(TsSyDeptArg arg, RowBounds rowBound);

    int insert(TsSyDeptPO record);

    int insertSelective(TsSyDeptPO record);

    int insertBatch(@Param("list") List<TsSyDeptPO> records);

    int updateByArgSelective(@Param("record") TsSyDeptPO record,
            @Param("arg") TsSyDeptArg arg);

    int updateByArg(@Param("record") TsSyDeptPO record,
            @Param("arg") TsSyDeptArg arg);

    int updateByPrimaryKeySelective(TsSyDeptPO record);

    int updateByPrimaryKeys(TsSyDeptPO record);
    
    int updateByPrimaryKey(TsSyDeptPO record);
    
    int deleteByArg(TsSyDeptArg arg);
    
    int deleteByPrimaryKey(String id);
    
}